<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <link rel="stylesheet" href="__STATIC__/index/css/newgoods.css">
  <link rel="stylesheet" href="__STATIC__/index/css/quan_common.css">
  <link rel="stylesheet" href="__STATIC__/index/css/single.css">
  <link rel="stylesheet" href="__STATIC__/index/css/common.css">
  <script src="__STATIC__/index/js/jquery-3.2.1.js"></script>
  <script src="__STATIC__/layui/layui.js"></script>
  <style type="text/css">
  	  .seller_newgoods a{
    	color: #3286ff;
			background: #eff6ff;
    }
  </style>
  <title>发布新品</title>
</head>
 <script type="text/javascript">
 	   function goods(){
 	   	var urls = $('#goodsurl').val();
 	   	if(urls ==''){
 	   		layui.use('layer', function(){
				  var layer = layui.layer;
				  layer.alert('请输入链接地址', {icon: 2});
					});              
			 		return false;
 	   	}
 	   	$(".checking").removeClass("hide");
 	   	$.ajax({
 	   		type:"post",
 	   		url:"{:url('is_url')}",
 	   		data:{urls:urls},
 	   		success:function(res){
   	   				if(res.code==0){
   	   				  $(".checking").hide();
   	   					$(".has-error").removeClass("hide");
	              $(".has-error>b").text(res.msg);
   	   				}else if(res.code==1){
	   	   				$(".checking").hide();
		 	   				$("#check_goods").hide();
		 	   				$(".has-error").hide();
		 	   				$(".has-success").removeClass("hide");
		 	   				$(".check-success").removeClass("hide");
   	   				}
 	           $('#data_new').val(res.title);
 	   		}
 	   	});
 	   }
 </script>
    <style>
      .acitve_layer_open {
        text-align: left;
        font-size: 12px;
        line-height: 22px;
        padding: 30px 20px;
        color: #555;
        border-bottom: solid 1px #f1f1f1;
      }

      .acitve_layer_open span {
        color: #FF6633;
      }

      .acitve_layer_open p {
        color: #333;
        padding-bottom: 2px;
      }
    </style>
<body>
  <!-- 头部 -->
  {include file='common/heade'}
   <div class="single_center w_1200">
  {include file='common/left'}
  <!-- 中部 -->

    <!--左侧菜单统计事件-->
    <div class="single_r_center">


      <div class="check-main">

        <p class="tit">请校验商品：</p>
        <input name="goodsurl" class="" type="text" id="goodsurl" value="{$url}" placeholder="请粘贴商品链接进行检测">
        
        <input name="_csrf" type="hidden" id="_csrf" value="M0F2N0lZVHp/MBRuDBYaTXEPAXsbEB1LZREcARBqPQsGCQZaHQgwNw==">
        <span class="check-res has-error hide"><b><i></i>无效的商品地址，请填写正确的 淘宝或天猫 商品地址</b></span>
        <input type="button" class="" name="Submit22" value="校验商品" id="check_goods"  onclick="goods()"   data-warning="请粘贴商品链接" data-action="/tk_zs/check-lq-goods.html?activity=0">
        <span class="checking hide"><b><i></i>检测中</b></span>
        <span class="check-res has-success hide"><b><i></i>检测通过</b></span>
        <!--                <span class="check-res has-wrong hide"><b><i></i>检测失败</b></span>-->
        <a href="{:url('index/seller/addseller')}" id="check_goods_next" class="check-success hide" >下一步</a>
        
        


        <div class="important-attention">
          <span>重要提醒：</span>
        <!--  <p>1、已支持团长链接，填写信息时可补充！</p>-->
          <p>1、务必确保信息准确无误再提交，任何一项错误，直接拒绝！</p>
          <p>2、请确保已经和商家对接清楚，切勿中途调整价格和佣金！</p>
          <p>3、若中途商品有变化，请及时在线修改或者下架商品！</p>
        </div>

        <div id="check_resault" style="margin-top:20px; text-align:center; line-height:24px; color:#999999;"></div>
      </div>
    </div>
  </div>


  <!-- 尾部 -->
  {include file='common/bottom'}
</body>
<script>
  
</script>

</html>